package homework;

import java.util.Random;

public class work03 {
	public static void main(String[] args) {
		int[] arr = new int[]{1,2,3,4,5};
		int temp = 0;
		
		Random r = new Random();
		
		for(int i=0;i<5;i++){
			int wei = r.nextInt(5);
			temp = arr[i];
			arr[i] = arr[wei];
			arr[wei] = temp;
		}
		for(int j=0;j<5;j++){
			System.out.println(arr[j]);
		}

	}
}
